package com.explorati.LeetCode344.reversestring;

public class Solution2 {
	public static String reverseString(String s) {

		StringBuilder sb = new StringBuilder(s);
		String str = sb.reverse().toString();
		return str;
	}

	public static void main(String[] args) {
		String s = "abcdefgids";
		String str = reverseString(s);
		System.out.println(str);
	}
}
